home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
search
/
lsmtool-.6
/
lsmtool-
/
lsmtool-0.6
/
termtest.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-12-28
|
428b
|
27 lines
/*
* termtest.c -- test terminal stuff for lsmtool
*
* Lars Wirzenius
* "@(#)lsm:termtest.c,v 1.1 1994/12/28 13:06:38 wirzeniu Exp"
*/
#include <stdio.h>
#include "term.h"
int main(void) {
int key;
terminit();
clear();
move(0, 0);
printf("Press keys, q quits");
while ((key = getkey()) != 'q' && key != -1) {
move(5, 0);
clrtoeol();
printf("Keycode = %d", key);
fflush(stdout);
}
termend();
return 0;
}